<?php
foreach ($article as $k => $v) {
?>
<div class="article_item">
    <div class="a_item_top">
        <div class="title">
            <?=$v['title']?>
        </div>
        <div class="user">
            ——By <?=$v['user']['username']?>
        </div>
    </div>
    <div class="content">
        <?=$v['content']?>
    </div>
</div>
<div class="article_item_reply">
    <form action="<?=$this->createUrl('article/reply')?>" method="post">
        <textarea name="content" id="reply_content" cols="30" rows="5" placeholder="文章怎么样？评论一下吧..."></textarea>
        <input type="hidden" value="<?=$v['id']?>" name="id">
        <br>
        <input type="submit" value="点评">
        <span class="error_msg"><?=$msg?></span>
    </form>
    <ul>
    <?php
    foreach ($v['replies'] as $i => $j) {
    ?>
        <li>
            <div class="reply_content"><?=$j['content']?></div>
            <div class="reply_user">—— By <?=$j['user']['username']?></div>
        </li>
    <?php
    }
    ?>
    </ul>
</div>
<?php
}
?>
